package com.sjq.common.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface MainDao{
    
    /**
     * 查询一层子菜单
     * @param role 角色id
     * @param pid 父菜单id
     * @return
     * @throws SQLException
     */
    public List<Map<String,String>> selectSubMenu(String role, String pid) throws SQLException;
    
    /**
     * 获取所有下级菜单
     * @param role 角色id
     * @param pid 父菜单id
     * @return
     * @throws SQLException
     */
    public List<Map<String,String>> selectAllSubMenu(String role, String pid) throws SQLException;
    
}
